package com.future.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.future.domain.DTO.PsychologicalKnowledgeDTO;
import com.future.domain.PsychologicalKnowledge;
import com.future.domain.Result;
import com.future.domain.query.PsyKnowledgeQuery;



public interface IPsychologicalKnowledgeService extends IService<PsychologicalKnowledge> {
    Result saveKnowledge(PsychologicalKnowledgeDTO knowledge);
     //查看
    Result getKnowledge(Long id);
    //删除
    Result removeKnowledge(Long id);
    //更新
    Result updateKnowledge(PsychologicalKnowledgeDTO knowledge,Long id);
    Result listByPage(PsyKnowledgeQuery query);

    Result getMyKnowledge(Integer pageNum,Integer pageSize,String title);

    Result PsyKnowledge(String type);
    void updateViews(Long id,int oldViews);

}
